package org.jeecg.modules.htxincailiao.search.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.htxincailiao.search.entity.HTGlobalSearch;
import org.jeecg.modules.htxincailiao.search.mapper.HTGlobalSearchMapper;
import org.jeecg.modules.htxincailiao.search.service.IHTGlobalSearchService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: ht_global_search
 * @Author: jeecg-boot
 * @Date:   2022-03-04 09:47:58
 * @Version: V1.0
 */
@Service
public class HTGlobalSearchServiceImpl extends ServiceImpl<HTGlobalSearchMapper, HTGlobalSearch> implements IHTGlobalSearchService {
    @Resource
    private HTGlobalSearchMapper htGlobalSearchMapper;

    @Override
    public IPage<HTGlobalSearch> pageList(Integer pageNo, Integer pageSize, HTGlobalSearch htGlobalSearch) {

        Page<HTGlobalSearch> page = new Page<>(pageNo, pageSize);

        return htGlobalSearchMapper.pageList(page, htGlobalSearch);
    }
}
